<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../js/task4.js"></script>
</head>

<body>
    <div id="user">
        <span>用户名：</span>
        <input type="text" id="user" value="admin">
    </div>
    <div>
        <span>密&nbsp;&nbsp;&nbsp;码：</span>
        <input type="password" id="password">
    </div>
    <button onclick="fn()">注册</button>

</body>

</html>